import { constantRoutes } from '@/router/index'
export default {
  namespaced: true,
  state() {
    return {
      menuList: [],
      logOutList: []
    }
  },
  mutations: {
    setMenus(state, asyncRoute) {
      // state.menuList.push(...asyncRoute)
      state.menuList = [...constantRoutes, ...asyncRoute]
    },
    setLogOutList(state, newList) {
      state.logOutList = newList
    }
  }

}
